package com.anhua.demo.gc;

public class ToDomyWork {
    public  Gc2 creatPersen(String name){
        Gc2 gc2=null;
       switch (name){
           case "nm":
               gc2=new FarmerGc();
               break;
           case "xs":
                   gc2=new StudentGc();
               break;
       }
       return gc2;
    }
}
